-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Direction column to Peers Tab #317
Conversation
No strong opinion, just think that with arrows it was more compact and clean. |
Currently, direction isn't a sortable column, and it's potentially confusing to users to display both connection direction and type in the details area but only the the connection type without the direction (and so no type at all for inbounds) in the main table. It was the reason I reopened the parent PR after an issue was filed in bitcoin/bitcoin where this came up. |
a44eec9
to
5d7463a
Compare
updated from a44eec9 -> 5d7463a (pr317.01, pr317.02, diff) Changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Light code review ACK 5d7463a
5d7463a
to
0183415
Compare
updated from 5d7463a -> 0183415 (pr317.02 -> pr317.03) Changes:
|
Co-authored-by: Jarol Rodriguez <jarolrod@tutanota.com>
0183415
to
6971e79
Compare
Tested ACK 6971e79 |
@hebasto mind having a look into this? Would be nice to have it in v22. |
This still takes up an annoying chunk of horizontal size. #363 ? |
Recently merged PRs gained us a lot of horizontal space so I thought it might no longer be an obstacle. The issue with arrows is they would not resolve the discrepancy between the connection direction and type, which are displayed in full in the details area ("Outbound Full Relay") but lack the direction in the main table ("Full Relay"). This causes confusion, e.g. for a bitcoin dev in a bitcoin/bitcoin issue who thought it was a bug. |
NACK - I prefer the existing functionality. It could be possible to have a 4-click sort method on the existing column though if you wanted to choose to sort by the direction. |
Given the opposition to having a direction column, I wonder if the connection type column should be removed. Direction and type of connection go together and displaying only half of the two has been seen by experienced users as a bug. I think that's the wrong direction, but it is what reviewers seem to want. Edit: done in #372. |
|
Note that #372 (which reverts the addition of the "type" column) or this PR ought to be merged for v22.0 to avoid confusing users with a half-implemented feature that may look like a bug. |
#256 now allows a user to customize the widths of the table columns. It does not take up an annoying chunk of horizontal size if the user has resized the columns to their preference.
The existing functionality of no Direction column? 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 6971e79
Compiled and tested successfully on Ubuntu 20.04
Displaying Connection Direction would help clarify some confusion regarding connection direction, as was suggested in #289. I like the approach of this PR over #363, because for the following reasons:
- The horizontal arrows do not have a strong connotation of IN and OUT as compared to vertical arrows.
- Without mentioning the purpose of the left and right arrows in the column header, it creates more confusion to a new user than clearing it.
- Finally, the aesthetics of the arrow in Peers window: Show direction in a new column, with clearer icon #363 does not match with the rest of the table.
I would, however, like to make a suggestion. Instead of removing the arrow, they should be moved to the Direction Column. And also‘OUTBOUND’ and ‘INBOUND’ should be replaced by ‘OUT’ and ‘IN” as it is done here (under PR alternative diff header in the table) as it would convey the information correctly at the same time being aesthetically more pleasing.
Arrows "up" and "down" have no meaning about the connection direction. |
To check if one's node has more than one peers from a particular subnet. |
What is a "4-click sort method"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 6971e79, tested on Linux Mint 20.2 (Qt 5.12.8).
This change is an improvement for the following reasons:
- both "Direction" and "Type" columns are coherent with peer details
- the "Address" column is free from independent data
- it is possible to sort by address and by direction independently
- "up" and "down" arrows with no implicit or ubiquitous semantics of "inbound" and "outbound" have been replaced with the texts that are clear and understandable for everyone, including new users
I do not consider taking horizontal space by the new "Direction" column as a blocker for approving this PR.
A screenshot from my system:
It looks really great!
I like #401 very much, please see my suggestion B.3 there. An empty connection type I find confusing. If the user sees (like I did with 22.0rc2), that always only all inbound connections have an empty type, the user thinks, OK I guess it's not detectable or something for inbound. But it leaves uncertainty, is confusing. |
Here is an example of a simple arrow based direction column for comparison. Using that much visual real estate for direction seems impractical. |
What does "↑" mean in the column with unnamed header title? |
one possible option is to put a unicode earth symbol in the column title. 🜨 This is both prudent on visual real-estate and universally recognized. arrow up (as in upload) means outbound data to most people these days. arrow down (as in download) means inbound data these days. |
Upload/download are about a direction of data transferring. Let's don't add more mess :) |
I was using the analogy to express an idea and possible approach to visual communication with the node operator. |
I suspect the long term solution is to leverage existing symbolic/unicode libraries to communicate with the node operator. Reference: https://google.github.io/material-design-icons/ Explaining fundamental GUI designs and concepts is fun. :) (not really) |
Please see my updated #401 (comment) in the brainstorming issue, with a small commit and a screenshot. Please comment what you think of it. |
As I mentioned in the comment below - drawing inspiration from the established iconography of git is going to go a long way. REF: https://github.com/primer/octicons/tree/main/icons |
6971e79 gui: add Direction column to peers tab (Jon Atack) Pull request description: Picking up #289 This adds a `Direction column`, making the peers tab the same as the `Direction/Type` row in the peer details and the direction and type columns in our other user-facing peer connections table in `-netinfo`. Users can now sort the peers table by direction. The default sort is set to inbound, then outbound. | Master | PR | | ----------- | ----------- | | ![Screen Shot 2021-05-05 at 3 51 09 AM](https://user-images.githubusercontent.com/23396902/117111864-38ff9a00-ad56-11eb-889d-f1c838c845e6.png) | ![Screen Shot 2021-05-05 at 3 35 40 AM](https://user-images.githubusercontent.com/23396902/117111892-4157d500-ad56-11eb-82b1-5bd3e88a4cff.png) | ACKs for top commit: jonatack: Tested ACK 6971e79 ShaMan239: tACK 6971e79 hebasto: ACK 6971e79, tested on Linux Mint 20.2 (Qt 5.12.8). Tree-SHA512: 9716cdedd435f88245a097fed6d4b2b486104d0dd09df739bdb4f2bfad709cbd9c9a231168cc3326e94fa5fddc77dd68f992f20417d04d94930db9fccdbb7de1
case Direction: | ||
return QString(rec->nodeStats.fInbound ? | ||
//: An Inbound Connection from a Peer. | ||
tr("Inbound") : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not continue using the up and down arrows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How could the "down arrow" could mean a "connection initiated by a peer" for a new user?
3ec061d qt: Add "Copy address" item to the context menu in the Peers table (Hennadii Stepanov) Pull request description: Picking up #264 This adds a `Copy Address` context menu action to the `Peers Tab`. Based on the first commit of PR #317 so that we can use `Qt::DisplayRole` in the `copyEntryData` function. | Master | PR | | ----------- | ----------- | | ![Screen Shot 2021-05-05 at 4 51 11 AM](https://user-images.githubusercontent.com/23396902/117117822-fb067400-ad5d-11eb-9466-228456108e52.png) | ![Screen Shot 2021-05-05 at 4 49 15 AM](https://user-images.githubusercontent.com/23396902/117117835-fe99fb00-ad5d-11eb-8de0-f6a9acdbf40e.png) | ACKs for top commit: shaavan: tACK 3ec061d luke-jr: utACK 3ec061d hebasto: ACK 3ec061d, tested on Linux Mint 20.2 (Qt 5.12.8): Tree-SHA512: be0d7324592aae3928fa3cc522294f17226419fe8cbe3587df12a36bd4fa9c81bead377b13051e950b9a3fcd290b273861e70d6c76b75cdf76eaf58224b834cd
Picking up #289
This adds a
Direction column
, making the peers tab the same as theDirection/Type
row in the peer details and the direction and type columns in our other user-facing peer connections table in-netinfo
.Users can now sort the peers table by direction. The default sort is set to inbound, then outbound.